﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


/**
 * 记录全局数据
 */
namespace GodSystemCommon
{
    public class GlobalData
    {
        public static int UsersId = 0;
        public static string UsersName = null;
        public static int UsersIsSuperManager = 0;
        public static int UsersStatus = 1;
        public static string Department = null;
        // 拥有的权限
        public static Dictionary<int, string> userPowers = new Dictionary<int, string>();
        // 拥有的角色
        public static Dictionary<int, string> userRoles = new Dictionary<int, string>();
        // 权限列表
        public static Dictionary<int, string> powerList = new Dictionary<int, string>();
        // 角色列表
        public static Dictionary<int, string> roleList = new Dictionary<int, string>();
        // 权限组
        public static Dictionary <int, string> powerGroup = new Dictionary<int, string>();
        // 字符串
        public static List<string> RandomString = new List<string> { "A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q",
        "R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","p",
        "r","s","t","u","v","w","x","y","z", "0", "1","2","3","4","5","6","7","8","9"};

        // 当前页码
        public static int CurrentPage = 1;
        // 总页码
        public static int TotalPage = 0;
        // 默认每页数量
        public static int PerPage = 5;
        
    }
}
